//
//  AVClient.h
//  Pink
//
//  Created by ZhongDaYunKe on 15/12/4.
//  Copyright © 2015年 ycy. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, modelType){
    UserTopicType,
    UserType,
    CollectType,
    NewsType,
    TopicType,
    UserReadNewsType
};


@interface AVClient : NSObject


+ (void)saveObjectWithClassName:(NSString *)className model:(NSObject *)model success:(void(^)(BOOL succeeded, NSError *error))success;

+(void)getObjectWithClassName:(NSString *)className objectId:(NSString *)objectId modelType:(modelType)type success:(void (^)(id ob))success failed:(void (^)(NSError *error))failer;
+ (NSMutableDictionary *)RealDictionaryForObject:(AVObject *)object;

@end
